﻿<UserControl x:Class="_3S_Cam.CamControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="Auto" Height="Auto">
        <Grid Height="Auto" Width="Auto">
            <Grid Name="ControlsContainer" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <!--<ColumnDefinition Width="30"/>-->
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="44"/>
                </Grid.RowDefinitions>
                <Grid Grid.Row="0" Name="CamContainer" Grid.Column="0" MinHeight="200" MinWidth="200"/>
                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,5">
                    <Button Name="RecordButton" Click="RecordButton_OnClick">
                            <Image Source="./Images/record.png" Margin="1" SnapsToDevicePixels="True"></Image>
                    </Button>
                    <Button Name="SnapshotButton" Click="SnapshotButton_OnClick" Margin="1,0,0,0">
                        <Image Source="./Images/photo.png" Margin="1" SnapsToDevicePixels="True"></Image>
                    </Button>
                    <Button Name="FolderButton" Click="FolderButton_OnClick" Margin="1,0,0,0">
                        <Image Source="./Images/folder_download.png" Margin="1" SnapsToDevicePixels="True"></Image>
                    </Button>
                    <Button Name="AudioOutButton" Click="AudioOutButton_OnClick" Margin="1,0,0,0">
                        <Image Source="./Images/sound_on.png" Margin="1" SnapsToDevicePixels="True"></Image>
                    </Button>
                    <Button Name="OpenBrowserButton" Click="OpenBrowserButton_OnClick" Margin="1,0,0,0">
                    <Image Source="./Images/web_browser.png" Margin="1" SnapsToDevicePixels="True"></Image>
                </Button>
                </StackPanel>
            </Grid>
            <Border Name="NoConnectionContainer" Background="Black" Width="250" Height="200" Visibility="Visible">
                <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Label Name="InfoLabel" FontFamily="Segoe UI" FontWeight="DemiBold" FontSize="18" Foreground="White" HorizontalAlignment="Center">No connection</Label>
                    <Label Name="IpLabel" FontFamily="Segoe UI" FontWeight="Medium" FontSize="13" Foreground="White" HorizontalAlignment="Center">192.168.2.220</Label>
                </StackPanel>
            </Border>
        </Grid>
</UserControl>
